import request from '@/utils/request'

// 摆药临时（查询的时候生成）列表 (分页)
export function selectPageDrugDispSelectTemp(query) {
    return request({
        url: '/drug/drugDispSelectTemp/selectPage',
        method: 'get',
        params: query
    })
}

// 摆药临时（查询的时候生成）汇总列表 (分页)
export function getDrugDispSelectTempList(query) {
    return request({
        url: '/drug/drugDispSelectTemp/list',
        method: 'get',
        params: query
    })
}

// 摆药临时（查询的时候生成）列表 (不分页)
export function listDrugDispSelectTemp(query) {
    return request({
        url: '/drug/drugDispSelectTemp/list',
        method: 'get',
        params: query
    })
}

// 摆药临时（查询的时候生成）详细
export function getDrugDispSelectTemp(drugDispSelectTempId) {
    return request({
        url: '/drug/drugDispSelectTemp/' + drugDispSelectTempId,
        method: 'get'
    })
}

// 新增摆药
export function addDrugDispSelectTemp(data) {
    return request({
        url: '/drug/drugDispSelectTemp',
        method: 'post',
        data: data
    })
}

// 修改摆药
export function updateDrugDispSelectTemp(data) {
    return request({
        url: '/drug/drugDispSelectTemp',
        method: 'put',
        data: data
    })
}

// 删除摆药
export function delDrugDispSelectTemp(drugDispSelectTempId) {
    return request({
        url: '/drug/drugDispSelectTemp/' + drugDispSelectTempId,
        method: 'delete'
    })
}

